package com.qfedu.buy.server.dao;

import com.qfedu.buy.common.dto.SkillGoodsDto;
import com.qfedu.buy.server.dto.SkillGoodsDetailDto;
import com.qfedu.buy.server.entity.SkillGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: NeighborBuy
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2021-02-05 09:41
 */
public interface SkillGoodsDao {
    List<SkillGoodsDto> selectBySaid(int said);
    SkillGoodsDetailDto selectById(int id);
    //扣减库存
    int update(@Param("id") int id,@Param("num") int num);
    int updateAdd(@Param("id") int id,@Param("num") int num);
}
